package com.heima.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.heima.domain.po.MessageBoard;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.heima.domain.query.MessageBoardQuery;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * 在线留言表 Mapper 接口
 * </p>
 *
 * @author author
 * @since 2025-08-05
 */
@Mapper
public interface MessageBoardMapper extends BaseMapper<MessageBoard> {

    Page<MessageBoard> findByPage(@Param("page") IPage<MessageBoard> page, @Param("query") MessageBoardQuery query);

    Page<MessageBoard> MyfindByPage(@Param("page") IPage<MessageBoard> page,
                                    @Param("query") MessageBoardQuery query,
                                    @Param("userId") Long userId);
}
